package cc.lj.internal.api.merchant.api;

import cc.lj.internal.api.core.config.FeignConfiguration;
import cc.lj.internal.api.merchant.api.fallbackfactory.PropertyRelationFeignServiceFallbackFactory;
import cc.lj.internal.api.merchant.dto.PropertyRelatonApiDTO;
import cc.lj.internal.api.merchant.query.PropertyRelationApiQuery;
import cc.lj.internal.core.http.HttpResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


/**
 * 物业信息分类表Feign服务
 * @author liangxifeng
 * @date 2021-12-29
 */
@FeignClient(contextId = "f-lj-internal-merchant-propertyRelationFeignService",
        name = "lj-internal-merchant",
        path = "propertyRelation",
        url = "${feign.merchantUrl}",
//        fallback = PropertyRelationFeignFallBackService.class,
        configuration = {FeignConfiguration.class},
        fallbackFactory = PropertyRelationFeignServiceFallbackFactory.class //
)
public interface PropertyRelationFeignService {
    /**
     * 展位区域列表接口
     */
    @PostMapping("/showAreaList")
    HttpResult<List<PropertyRelatonApiDTO>> showAreaList(@RequestBody PropertyRelationApiQuery propertyRelationQuery);

}